﻿@model List<Activity>
<div class="site-block">
    <div class="header">
        <span class="icon"></span>
        @ViewBag.ActiveUrl.Title
    </div>
    <ul class="list-view">
        <li class="caption">
            <div class="fl cell w20">
                <span class="block">
                    @ForumContext.GetText(LanguageSection.WHO_IS_ONLINE, "MEMBER")
                </span>
            </div>
            <div class="fl cell w35 center">
                <span class="block">
                    @ForumContext.GetText(LanguageSection.WHO_IS_ONLINE, "CURRENT_PAGE")
                </span>
            </div>
            <div class="fl cell w15 center">
                <span class="block">
                    @ForumContext.GetText(LanguageSection.WHO_IS_ONLINE, "LAST_ACTION")
                </span>
            </div>
            <div class="fl cell w15 center">
                <span class="block">
                    @ForumContext.GetText(LanguageSection.WHO_IS_ONLINE, "BROWSER")
                </span>
            </div>
            <div class="fl cell w15 center last-child">
                <span class="block">
                    @ForumContext.GetText(LanguageSection.WHO_IS_ONLINE, "PLATFORM")
                </span>
            </div>
            <br class="empty" />
        </li>
        @foreach (var u in Model)
        {
            <li>
                <div class="fl cell w20">
                    <div class="block">
                        @(u.UserId > 0 ? Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.USER_INFO, u.UserName), u.UserName) : Html.Link(string.Format(ForumContext.Configuration.WhoisIpAddress, u.IP), u.IP, new { @rel = "nofollow" }))
                    </div>
                </div>
                <div class="fl cell w35">
                    <div class="block">
                        @Html.Link(u.Location, u.PageTitle.Truncate())
                    </div>
                </div>
                <div class="fl cell w15 center">
                    <div class="block">
                        @ForumContext.PrettyDate(u.LastAction)
                    </div>
                </div>
                <div class="fl cell w15 center">
                    <div class="block">
                        @u.Browser
                    </div>
                </div>
                <div class="fl cell w15 last-child center">
                    <div class="block">
                        @u.Platform
                    </div>
                </div>
                <br class="empty" />
            </li>
        }
    </ul>
</div>

<div class="white-t">
    @Html.Raw(ViewBag.PageRender)
</div>
